package com.arnold.controller;

import com.arnold.entity.ResponseData;
import com.arnold.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by arnold.zhu on 2017/9/26.
 */
@RestController
@RequestMapping("/basic")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/testSayHello")
    public ResponseData testSayHello() {
        return new ResponseData(200, "Success", testService.sayHello());
    }

}
